import { baseAjax } from "../utils/baseAjax";
// 区域树形列表
export const listAreaTree = (successHandle) => {
  return baseAjax({
    url: '/api/dict/area/all/tree/list',
    type: 'get',
    success: successHandle
  })
}
// 区域树形列表
export const listCityTree = (successHandle) => {
  return baseAjax({
    url: '/api/dict/area/second/tree/list',
    type: 'get',
    success: successHandle
  })
}
// 行业树形列表
export const listIndustryTree = (successHandle) => {
  return baseAjax({
    url: '/api/dict/industry/all/tree/list',
    type: 'get',
    success: successHandle
  })
}
// 职位树形列表
export const listPositionTree = (successHandle) => {
  return baseAjax({
    url: '/api/dict/position/all/tree/list',
    type: 'get',
    success: successHandle
  })
}
// 证书树形列表
export const listCertTree = (successHandle) => {
  return baseAjax({
    url: '/api/dict/cert/all/tree/list',
    type: 'get',
    success: successHandle
  })
}

// 字典表树形列表
export const listDictTree = (data, successHandle) => {
	return baseAjax({
		url: '/api/common/dict/list',
		type: 'post',
		data,
		success: successHandle,
		showLoad: true
	})
}
